import Vue from 'vue'
import {
    Button, Search, Swipe, SwipeItem, Tabbar, TabbarItem, Grid, GridItem,
    PullRefresh, Toast, Sticky, Card, Sidebar, SidebarItem, Tag, Icon, NavBar, Tab, Tabs, List, Cell, DropdownMenu, DropdownItem, Empty, Pagination, Image as VanImage, Popup, Form, Field, GoodsAction, GoodsActionIcon, GoodsActionButton, Col, Row, Sku, CheckboxGroup, Checkbox, SubmitBar, Loading, SwipeCell, Stepper
} from 'vant'
// import 'vant/lib/button/style'
Vue.use(Button)
Vue.use(SwipeCell)
Vue.use(Stepper)
Vue.use(CheckboxGroup)
Vue.use(Checkbox)
Vue.use(SubmitBar)
Vue.use(Search)
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(PullRefresh);
Vue.use(Toast)
Vue.use(Sticky);
Vue.use(Card);
Vue.use(Sidebar);
Vue.use(SidebarItem);
Vue.use(Tag);
Vue.use(Icon);
Vue.use(NavBar);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(List);
Vue.use(Cell);
Vue.use(DropdownMenu);
Vue.use(DropdownItem);
Vue.use(Empty);
Vue.use(Pagination);
Vue.use(VanImage);
Vue.use(Popup);
Vue.use(Form);
Vue.use(Field);
Vue.use(GoodsAction);
Vue.use(GoodsActionButton);
Vue.use(GoodsActionIcon);
Vue.use(Col);
Vue.use(Row);
Vue.use(Sku);
Vue.use(Loading);
import { Lazyload } from 'vant';

Vue.use(Lazyload);

// 注册时可以配置额外的选项
Vue.use(Lazyload, {
    lazyComponent:true,
    attempt: 3,
});